Closing this window...
<script type="text/javascript">
	{if !$closeonly}
		{if $redirectopener}
			opener.location = "{$redirectopener}";
		{elseif $closeopener}	
			opener.close();
			if(opener.opener){ldelim}
				opener.opener.location = opener.opener.location;
			{rdelim}
		{else}
			opener.location.href = opener.location.href;
		{/if}
	{/if}
	self.close();
</script>